package com.ofps.flow.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ofps.common.annotation.Excel;
import com.ofps.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * flow对象 tb_enter_flow_node_inst
 *
 * @author ofps
 * @date 2022-06-01
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableName("tb_enter_flow_node_inst")
public class EnterFlowNodeInst  {
    private static final long serialVersionUID = 1L;

    /**
     * 流程节点实例的唯一标识
     */
    @TableId(type = IdType.AUTO)
    private String id;

    /**
     * 流程节点实例的唯一标识名称
     */
    private String name;
    /**
     * 该流程节点实例对应的流程实例id
     */
    @Excel(name = "该流程节点实例对应的流程实例id")
    private String flowInstId;
    /**
     * 该流程节点实例在流程实例的次序
     */
    @Excel(name = "该流程节点实例在流程实例的次序")
    private Long orderId;
    /**
     * 该流程节点实例是否为最后一个节点
     */
    @Excel(name = "该流程节点实例是否为最后一个节点")
    private Boolean last;
    /**
     * 该节点实例关联的用户id
     */
    @Excel(name = "该节点实例关联的用户id")
    private Long relatedUserId;
    /**
     * 审核意见
     */
    @Excel(name = "审核意见")
    private String idea;
    /**
     * 审核签名（图片，base64格式）
     */
    @Excel(name = "审核签名", readConverterExp = "图=片，base64格式")
    private String sign;
    /**
     * 审核状态，0未开始/1审核中/2通过/3回退，等待修改
     */
    @Excel(name = "审核状态，0未开始/1审核中/2通过/3回退，等待修改")
    private Long status;

    private Date time;

    private String ip;


}
